import { gstyRequest } from '../'
//查询项目接口内容
export async function getProjectList(params) {
    return gstyRequest.get({
        url: '/api/project/list',
        showLoading: true,
        params
    })
}
//添加接口项目
export async function addProject(data) {
    return gstyRequest.post({
        url: '/api/project/add',
        showLoading: true,
        data
    })
}
//删除接口项目
export async function deleteProject(data) {
    return gstyRequest.post({
        url: '/api/project/delete',
        showLoading: true,
        data
    })
}
//修改接口项目
export async function modifyProject(data) {
    return gstyRequest.post({
        url: '/api/project/modify',
        showLoading: true,
        data
    })
}
//删除接口
export async function deleteApi(data) {
    return gstyRequest.post({
        url: '/api/delete',
        showLoading: true,
        data
    })
}
//查询服务接口
export async function getApiList(params) {
    return gstyRequest.get({
        url: '/api/list',
        showLoading: true,
        params
    })
}
//添加服务接口
export async function addApi(data) {
    return gstyRequest.post({
        url: '/api/add',
        showLoading: true,
        data
    })
}
// 查询对外服务列表
export async function getApplyList(params) {
    return gstyRequest.get({
        url: '/api/apply/list',
        showLoading: true,
        params
    })
}
// 添加服务申请
export async function addApplyApi(data) {
    return gstyRequest.post({
        url: '/api/apply/add',
        showLoading: true,
        data
    })
}
// 删除服务申请
export async function deleteApplyApi(data) {
    return gstyRequest.post({
        url: '/api/apply/delete',
        showLoading: true,
        data
    })
}
// 更新服务状态
export async function updateState(data) {
    return gstyRequest.post({
        url: '/api/apply/updateState',
        showLoading: true,
        data
    })
}
// 查询服务访问日志
export async function getLogList(params) {
    return gstyRequest.get({
        url: '/api/log/logList',
        showLoading: true,
        params
    })
}
// 服务访问统计接口
export async function getlogStatistics(params) {
    return gstyRequest.get({
        url: '/api/log/logStatistics',
        showLoading: true,
        params
    })
}
// 修改服务接口
export async function modifyApi(data) {
    return gstyRequest.post({
        url: '/api/modify',
        showLoading: true,
        data
    })
}
